import Vue from 'vue'
import VueRouter from 'vue-router'
import ElementUI from 'element-ui';
import App from './App.vue'

import 'element-ui/lib/theme-chalk/index.css';
//阻止产生生产消息
Vue.config.productionTip = false
Vue.use(VueRouter)
Vue.use(ElementUI)

import HelloWorld from './components/HelloWorld.vue'
import ConsigneeList from './components/Consignee/ConsigneeList'
import ConsigneeSaveOrEdit from './components/Consignee/ConsigneeSaveOrEdit'


var router = new VueRouter({
    routes:[
        {path:"/helloworld",component:HelloWorld},
        {path:"/ConsigneeList",component:ConsigneeList},
        {path:"/ConsigneeSaveOrEdit",component:ConsigneeSaveOrEdit},
        {path:"/ConsigneeSaveOrEdit/:id",component:ConsigneeSaveOrEdit}
    ]
})


new Vue({
  render: h => h(App),
    router
}).$mount('#app')
